import java.util.*;
import java.io.*;
/**
 * Write a description of class A25_1 here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class A25_1
{
   public static void main(String[] args)
    {
        Scanner keyboard = new Scanner(System.in);
        double celcious;
        double farenheit;
        while(true)
        {
            try
            {
                System.out.print("\nPlease type a celcious temperature\n");
                celcious = keyboard.nextDouble();
                farenheit = (celcious * 9.0/5.0) + 32.0; 
                //break;
                
            }
            catch(InputMismatchException exception)
            {
              System.out.print("\nI was expecting a double\n");  
              //keyboard.nextLine();
              //continue;
            }
        
            
            
            System.out.println("fatenheit temperature is " + farenheit + " degree farenheit");
        }
    
    }
}
